<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>    
    <?php 
        $current_home = '';
        $current_servicios = '';
        $current_productos = '';
        $current_ubicaciones = '';
        switch($title_for_layout){
            case 'Home':
                $current_home = 'current';
            break;
            case 'Servicios':
                $current_servicios = 'current';
            break;
            case 'Productos':
                $current_productos = 'current';
            break;
            case 'Producto':
                $current_productos = 'current';
            break;            
            case 'Ubicaciones':
                $current_ubicaciones = 'current';
            break;
        }
    ?>
    <?php echo $this->Html->charset(); ?>   
    <?php
        //echo $this->Html->meta('icon');
        echo $this->Html->meta( 'favicon.ico', '/favicon.ico', array('type' => 'icon') );          
        echo $this->Html->css(array('site/nivo/default', 'site/style', 'site/nivo/nivo-slider', 'site/nivo/caroufredsel'));     
        echo $this->Html->script('https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js');   
        echo $this->Html->script(array('site/nivo/jquery.nivo.slider', 'site/caroufredsel/jquery.carouFredSel-6.1.0-packed'));                                  
                 
        //link fancybox contacto
        $src = '/fancybox';
        $this->Fancybox->setProperties( array('class' => 'fancybox9', 'className' => 'fancybox.iframe', 'title'=>'', 'rel' => 'media-gallery') );
        $this->Fancybox->setPreviewContent('Contacto'); 
        $this->Fancybox->setMainContent($src);
        //
                
        echo $this->fetch('meta');
        echo $this->fetch('css');
        echo $this->fetch('script');                            
    ?>
    
    <script type="text/javascript">
    $(window).load(function() {
        
        $('#slider').nivoSlider({
            effect: 'sliceUpDownRight', // Specify sets like: 'fold,fade,sliceDown'
            slices: 15, // For slice animations
            boxCols: 8, // For box animations
            boxRows: 4, // For box animations
            animSpeed: 500, // Slide transition speed
            pauseTime: 5000, // How long each slide will show
            startSlide: 0, // Set starting Slide (0 index)
            directionNav: false, // Next & Prev navigation
            controlNav: true, // 1,2,3... navigation
            controlNavThumbs: false, // Use thumbnails for Control Nav
            pauseOnHover: true, // Stop animation while hovering
            manualAdvance: false, // Force manual transitions
            prevText: 'Prev', // Prev directionNav text
            nextText: 'Next', // Next directionNav text
            randomStart: false // Start on a random slide
        });
        
        $("#foo1").carouFredSel();
                
        $('.logo-avenida').mouseover(function() {
            var id = this.id;
            $('#'+id).css('background-image', "url('/img/site/producto-hover.png')");
        });
        
        $('.logo-avenida').mouseout(function() {
            var id = this.id;
            $('#'+id).css('background-image', "url('')");
        });
        
        $('.logo-avenida').click(function() {
            var id    = this.id;
            var title = this.title;
            $(location).attr('href','/producto/interior/'+title.toLowerCase()+'/'+id);  
        });
        
    });
    </script>
    
    <title><?php echo __('Avenida: '); ?><?php echo $title_for_layout; ?></title>
    
</head>
<body>
<?php 
    $src = '/contacto';
    $this->Fancybox->setProperties( array('class' => 'fancybox9 menu', 'className' => 'fancybox.iframe', 'title'=>'', 'rel' => 'media-gallery') );
    $this->Fancybox->setPreviewContent('CONTACTO'); 
    $this->Fancybox->setMainContent($src);      
?> 
<div id="bk_<?php echo strtolower($title_for_layout); ?>">
    <div id="content">
        <div class="top">
            <div class="logo">
                <img src="/img/site/logo-avenida.jpg" width="321" height="77" alt="avenida" />
            </div>
            <div class="cont_menu">
                <ul id="menu">
                    <li><a href="/home" class="menu <?php echo $current_home; ?>">HOME</a></li>
                    <li><a href="/servicios" class="menu <?php echo $current_servicios; ?>">SERVICIOS</a></li>
                    <li><a href="/productos" class="menu <?php echo $current_productos; ?>">PRODUCTOS</a></li>
                    <li><a href="/ubicaciones" class="menu <?php echo $current_ubicaciones; ?>">UBICACIONES</a></li>
                    <li>
                    <a href="4" class="menu"><?php echo($this->Fancybox->output()); ?></a></li>
                </ul>
            </div>            
        </div>
        <?php echo $this->Session->flash(); ?>
        <?php echo $this->fetch('content'); ?>      
    </div>
</div>    
<div class="footer">
    <div class="datos">
        <ul>
            <li class="ico"><img src="/img/site/ico-direccion.jpg" width="10" height="15" /></li>
            <li class="txt">Gral. Mariano Acha 1071 (1427) CABA </li>
            <li class="ico"><img src="/img/site/ico-telefono.jpg" width="10" height="16" /></li>
            <li class="txt">(5411) 4524-9468 / 9493</li>
            <li class="ico"><img src="/img/site/ico-mail.jpg" width="19" height="19" /></li>
            <li class="txt"><a href="mailto:info@avenidapublicidad.com" class="mailto">info@avenidapublicidad.com</a></li>
            <li style="font-weight:bold; font-size:14px; padding-left:200px;">AD-POINT S.A.</li>
        </ul>
    </div>
</div>

</body>
</html>
